<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%-- ${list} --%>
	<form action="/JavaWeb1907/user?method=add" method="post">
		用户名：<input type="text" name="name"/><br/>
		年龄：<input type="text" name="age"/><br/>
		性别：<input type="text" name="gender"/><br/>
		部门:<select name="deptId">
				<c:forEach items="${list}" var="dept">
					<option value="${dept.id}">${dept.name}</option>
				</c:forEach>
			</select>
		<br/>
		<input type="submit" value="添加">	
	</form>
</body>
</html>